﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BSCMFF.Core.DataAccessLayer;

namespace BSCMFF.Web.UserControls.EmployeeTabs
{
    public partial class EvaluationTab : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            int employeerID = Convert.ToInt32(Request.QueryString["EmployeeID"]);

            RadDatePicker3.SelectedDate = DateTime.Today;
            //emp.Text = employeerID.ToString();

            BSCEntities context = new BSCEntities();

            var tasks = (from t in context.Tasks
                         where t.User_FK == employeerID
                         select t);

            RadGrid1.DataSource = tasks;
        }

        protected void RadGrid1_DataBinding(object sender, EventArgs e)
        {
           //e.Cancel = true;
        }

        
    }
}